<!DOCTYPE html>
<html lang="en">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath(); 
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<head>
	<title></title>
    <meta charset="utf-8">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <script type="text/javascript" src="<%=basePath%>/js/jquery-1.9.0.min.js"></script>
    <style>
        body {
            margin: 10em auto;
            text-align: center;
        }
        input{
            width: 500px;
            margin:1em auto ;
            padding: 10px ;
        }
    </style>
</head>
<body>
<form id="unpayPayForm" name="unpayPayForm" method="post" action="${unionPayPostUrl}" >
    <input type="hidden" name="oid_partner" value="${unpay.oid_partner}"><br>
    <input type="hidden" name="user_id" value="${unpay.user_id}"><br>
    <input type="hidden" name="no_order" value="${unpay.no_order}"><br>
    <input type="hidden" name="dt_order" value="${unpay.dt_order}"><br>
    <input type="hidden" name="name_goods" value="${unpay.name_goods}"><br>
    <c:if test="${not empty unpay.info_order }">
        <input type="hidden" name="info_order" value="${unpay.info_order}"><br>
    </c:if>
    <input type="hidden" name="money_order" value="${unpay.money_order}"><br>
    <input type="hidden" name="notify_url" value="${unpay.notify_url}"><br>
    <input type="hidden" name="url_return" value="${unpay.url_return}"><br>
    <c:if test="${not empty unpay.bank_code }">
       <input type="hidden" name="bank_code" value="${unpay.bank_code}"><br>
    </c:if>
    <c:if test="${not empty unpay.pay_type }">
       <input type="hidden" name="pay_type" value="${unpay.pay_type}"><br>
    </c:if>
    <c:if test="${not empty unpay.pay_acct_no }">
       <input type="hidden" name="pay_acct_no" value="${unpay.pay_acct_no}"><br>
    </c:if>
    <input type="hidden" name="sign" value="${unpay.sign}"><br>
</form>
</body>
<script type="text/javascript">
    $(function(){
       $("#unpayPayForm").submit();
    });
</script>
</html> 

